﻿using Common.Enums;
using Common.ServiceResponse;
using Infrastructure.Interfaces;

namespace Infrastructure.Services
{
    public class ResponseDetailsService : IResponseDetailsService
    {
        public ResponseDetails BuildSuccessResponse()
        {
            return new ResponseDetails(ResponseStatus.Success, string.Empty);
        }

        public ResponseDetails BuildErrorResponse(string errorDetails)
        {
            return new ResponseDetails(ResponseStatus.Error, errorDetails);
        }

        public ResponseDetails BuildWarningResponse(string warningDetails)
        {
            return new ResponseDetails(ResponseStatus.Error, warningDetails);
        }
    }
}
